package com.ktgj.customer.domain;

import com.ktgj.customer.domain.dto.SysMenuLoginDTO;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;

import java.io.Serializable;
import java.util.List;

/**
 * 员工角色中间对象 employee_position
 * 
 * @author ruoyi
 * @date 2022-07-06
 */
public class EmployeePosition implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 员工ID */
    @Excel(name = "员工ID")
    private Long employeeId;

    /** 角色ID */
    @Excel(name = "角色ID")
    private Long positionId;

    /** 角色名称 */
    @Excel(name = "角色名称")
    private String positionName;

    //角色权限管理值
    private Long permission;

    //角色对应的菜单
    private List<SysMenuLoginDTO> lstMenu;

    public Long getPermission()
    {
        return permission;
    }

    public void setPermission(Long permission)
    {
        this.permission = permission;
    }

    public List<SysMenuLoginDTO> getLstMenu()
    {
        return lstMenu;
    }

    public void setLstMenu(List<SysMenuLoginDTO> lstMenu)
    {
        this.lstMenu = lstMenu;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEmployeeId(Long employeeId) 
    {
        this.employeeId = employeeId;
    }

    public Long getEmployeeId() 
    {
        return employeeId;
    }
    public void setPositionId(Long positionId) 
    {
        this.positionId = positionId;
    }

    public Long getPositionId() 
    {
        return positionId;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("employeeId", getEmployeeId())
            .append("positionId", getPositionId())
            .append("positionName", getPositionName())
            .toString();
    }
}
